<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	template="/WEB-INF/templates/notConnected.xhtml">
	<ui:define name="content">
		<h:form id="formUserGestion">
			<p:panel id="panelUserGestion">
				<h:panelGrid columns="2" style="margin-bottom:10px" cellpadding="5">
					<h:outputText value="Options: " />
					<p:selectOneRadio id="options" value="#{inscriptionMBean.form}"
						onchange="lazyload()">
						<f:selectItem itemLabel="#{i18n.customer}"
							itemValue="customerInscription" />
						<f:selectItem itemLabel="#{i18n.manager}"
							itemValue="managerInscription" />
						<f:selectItem itemLabel="#{i18n.employe}"
							itemValue="employeeInscription" />
					</p:selectOneRadio>
				</h:panelGrid>
				<p:outputPanel id="managerOutPanel">
					<ui:include src="#{inscriptionMBean.include}" />
				</p:outputPanel>
			</p:panel>
			<p:remoteCommand name="lazyload" update="managerOutPanel"
				actionListener="#{inscriptionMBean.changeForm}"
				process="@this,options">
			</p:remoteCommand>
		</h:form>
	</ui:define>
</ui:composition>
